﻿<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>
    <div>
        <!--<progress class="indeterminate" style="width:100%;display:none;background-color:#fff"></progress>-->
        <div template="view" path="{{path()}}" style="position:fixed;left:0px;top:0px;right:0px;bottom:0px;"
             instance="$view" >

        </div>
        
    </div>
    <script>
       
    
        var scope = this;
        scope.path = function () {
          
            if (!ngW8.$("$store").$get("$SERVICE_URL")) {
                return "commons/connectSettings.html";
            }
            if (ngW8.$("$store").$get("UserInfo") && (ngW8.$("$store").$get("UserInfo").TokenID)) {
                return "hubpage.html";
            }
            else {
                return "commons/login.html";
            }
        };
        scope.ShowRoot = function () {

        }
        scope.$$$ready(function () {
           
        });
        
    </script>
</body>
</html>